<script>
	var that;
	export default {
		data() {
			return{
				userid:''
			}
		},
		onLaunch: function() {
			if(uni.getStorageSync('getday').length == 0)
			{
				uni.navigateTo({
				    url: 'pages/sq/sq'
				});
			}
			if(uni.getStorageSync('getday').length != 0)
			{
				const myDate = new Date();
				const cz = myDate - uni.getStorageSync('getday')
				if(cz >= 1296000000){
					uni.clearStorageSync();
					uni.showToast({
						title: '请重新授权！',
						duration:1500,
						mask: true,
						icon: 'none'
					});
					uni.navigateTo({
					    url: 'pages/sq/sq'
					});
				}
			}
			
		},
		onShow: function() {
			
		},
		onLoad: function() {
			
		},
		onHide: function() {
		},
	}
</script>

<style>
	/*每个页面公共css */
</style>